package com.github.slprj.slake.net;

/**
 * Des:
 * 请求处理器
 *
 * @author YangXiaoLong
 * @date 2022/9/11 21:39
 */
public abstract class ReqProcessor {

    public abstract WriteFrame process(ReadFrame frame, SlChannel channel);

    /**
     * 每一个处理器都有自己的解码器
     */
    public abstract Decoder getDecoder();

    public boolean runInIoThread() {
        return false;
    }
}
